package com.jyy.prefabricated.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 题目选项
 */
@Data
public class Option implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 题目选项
     */
    private String content;

    /**
     * 图片地址
     */
    private String image;

    /**
     * 是否答案
     */
    private Boolean ifAnswer = false;

    /**
     * 题目id
     */
    private Integer questionId;

    /**
     * 排序
     */
    private Integer sort;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    //选项百分比
    private double accuracy;

}